#ifndef RACING_H
#define RACING_H

#include <QMainWindow>
#include<qpainter.h>

QT_BEGIN_NAMESPACE
namespace Ui { class Racing; }
QT_END_NAMESPACE

class Racing : public QMainWindow
{
    Q_OBJECT

public:
    Racing(QWidget *parent = nullptr);
    ~Racing();

    void paintEvent(QPaintEvent *event);
    void InitCar();
    void InitBarriar();


private:
    Ui::Racing *ui;
    QRect CarRect;
    QRect BarriarRect;
};

#endif // RACING_H
